import 'package:flutter/services.dart';

const messageChannel =
    BasicMessageChannel('cn.gowild.eve.plugin/message', StandardMessageCodec());
const eventChannel = EventChannel('cn.gowild.eve.plugin/event');

///该类需要和原生同步
class PluginConstant {
  ///和原生交互类型
  static const String http = "http"; //网络交互
  static const String push = "push"; //原生push直接push到flutter指定页面
  static const String action = "action"; //和原生动作交互
  static const String PUSH_CODE = "push_code";

  ///动作交互 (命名规范 动作+模块+功能)
  static const String actionAppBack = 'action.app.back';
  static const String actionTriggerPlot = 'action.plot.tirgger';//触发剧情
//  static const String triggerPlotFinish = "action.plot.trigger.finish"; //触发剧情结束
  static const String actionMall = 'action.app.mall';
  static const String actionAppDebug = 'action.app.debug';
  static const String actionAppC2Home = 'action.app.c2Home';
  static const String actionAppYXHome = 'action.app.yxHome';
  static const String actionAppShareInfo = 'action.app.shareInfo';
  static const String actionAppBuyVip = 'action.app.buyVip';

  ///网络数据交互
  static const String httpAccountInfo = 'http.account.info';
  static const String httpUserInfo = 'http.user.info';
  static const String httpYXAppInfo = 'http.yx.appInfo'; //app信息

  static const String httpHealthHome =
      '/action/property/get-user-health-property';
  static const String httpHealthBody =
      '/action/property/get-user-body-property';
  static const String httpHealthLog = '/action/clearing/get-health-log';
  static const String httpAllGoodsType =
      '/business/get-all-goods-type'; //mall 首页category
  static const String httpYXAreaCode = '/config2/dict/get-one'; //登录
  static const String httpYXCaptcha = '/user/request-captcha'; //获取验证码
  static const String httpYXRegMobile = '/user/register-by-mobile'; //注册登录
  static const String httpYXEditUserInfo =
      '/user/info/change-user-info'; //修改用户信息
  static const String httpYXBindResult = '/bind_result'; //绑定结果监听
  static const String httpYXAutoLogin = '/user/auto-login'; //登陆
  static const String httpYXSwitchIP = '/user/switch-ip'; //切换ip指令

  static const String httpYXAchievesRole = '/yexiu/archive/role'; //角色信息
  static const String httpYXAchievesWeapon = '/yexiu/weapon/upgradeinfo'; //武器信息
  static const String httpYXCardUpgrade = '/yexiu/card/card-upgrade'; //卡牌升级
  static const String httpYXWeaponUpgrade = '/yexiu/weapon/upgrade'; //武器升级
  static const String httpYXFormUpgrade = '/yexiu/weapon/form-upgrade'; //武器进阶
  static const String httpYXRank = '/yexiu/weapon/ranking'; //武器排行
  static const String httpYXWeaponForm = '/yexiu/weapon/all-form'; //武器形態
  static const String httpYXAbilityDetail = '/action/property/get-user-property-by-type'; //能力详情
  static const String httpYXPersonalData = '/action/property/get-all-property-types'; //个人能力
  static const String httpYXSource = '/yexiu/archive/goods-source'; //商品来源


  static const String httpYXGetCoinRanking = '/user/get-coin-ranking'; //金币排行
  static const String httpYXGetRanking = '/yexiu/ranking'; //千机伞排行榜
  static const String httpYXGetAbilityRanking = '/action/ranking/get-ranking'; //能力排行榜

  static const String httpYXDungeons = '/yexiu/dungeon/dungeons'; //获取副本列表
  static const String httpYXDungeonStageInfo = '/yexiu/dungeon/stageinfo'; //获取关卡详情
  static const String httpYXDungeonStages = '/yexiu/dungeon/stages'; //获取指定副本的关卡列表
  static const String httpYXDungeonRank = '/yexiu/dungeon/rank'; //获取副本得分排行榜
  static const String httpYXDungeonVitality = '/yexiu/dungeon/vitality'; //查询活力值
  static const String httpYXUserCard = '/yexiu/dungeon/user-cards'; //查询用户卡牌列表
  static const String httpYXDungeonFight = '/yexiu/dungeon/fight'; //发起挑战

  ///和原生交互页面
  static const int nativeHealthHome = 100; //健康首页
  static const int nativeHealthWeight = 101; //健康体重
  static const int nativeLogin = 102; //登录界面
  static const int nativeEditUser = 103; //用户信息编辑
  static const int nativeSelectMachine = 104; //选择机器
  static const int nativeRankList = 105; //排行榜
  static const int nativeCheckpoint = 106; //副本
  static const int nativeArchives = 107; //档案
}
